﻿@{
    ViewBag.Title = "日志模块";
    Layout = "~/Views/Shared/_ListLayout.cshtml";
}
@inherits CMSWebViewPage<object>
<div id="toolbar_logmodule" class="datagrid-toolbar">
    @*    <div class="top-tool">
        <a class="easyui-linkbutton" onclick="Add();" data-options="iconCls:'icon-add',plain:true">新增</a>
    </div>
    <div class="easyui-menu right-tool">
        <div onclick="Edit();" data-options="iconCls:'icon-edit'">编辑</div>
        <div onclick="Delete();" data-options="iconCls:'icon-remove'">删除</div>
    </div>*@
    @CurrentButtonTool.Create()
    <div>
        <form id="fr_search_logmodule">
            @Html.QueryStringBox("模块名称", "ModuleName")
            @Html.QueryStringBox("模块代码", "ModuleCode")
            <a href="javascript:void(0)" onclick="Search();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">Search</a>
        </form>
    </div>
</div>
<table id="dg_logmodule" data-options="url:'/logmodule/listjson/',border:false,fit:true,fitColumns:true,toolbar:'#toolbar_logmodule',singleSelect:true,pagination:true,pageSize:20">
    <thead>
        <tr>
            <th data-options="field:'ck',checkbox:true"></th>
            <th data-options="field:'Id',width:80,align:'center'">Id</th>
            <th data-options="field:'ModuleName',width:80,align:'center'">模块名称</th>
            <th data-options="field:'ModuleCode',width:80,align:'center'">模块代码</th>
        </tr>
    </thead>
</table>
@section Bottom{
    @*<script src="~/Content/easyui/jquery.min.js"></script>
    <script src="~/Content/js/tjzheng.js"></script>*@
    <script type="text/javascript">
        var objBizDatagrid = new BizDatagrid('#dg_logmodule');
        function Add() {
            objBizDatagrid.add("/logmodule/editpage/");
        }
        function Edit() {
            objBizDatagrid.edit("/logmodule/editpage/");
        }
        function Search() {
            objBizDatagrid.search('#fr_search_logmodule', '/logmodule/listjson/');
        }
        function Delete() {
            objBizDatagrid.del('/logmodule/delete/');
        }
    </script>
}
